import request from '@/utils/request'
// 获取任务列表数据
export function shopListData(params) {
  return request({
    url: '/shop/listData',
    method: 'get',
    params: {
      ...params
    }
  })
}
// 获取商城开关
export function shopGetUp(data) {
  return request({
    url: '/shop/get-up',
    method: 'post',
    data
  })
}
// 修改商城开关
export function shopUp(data) {
  return request({
    url: '/shop/up',
    method: 'post',
    data
  })
}
// 商城上架
export function shopOnShelfList(data) {
  return request({
    url: '/shop/on-shelf-List',
    method: 'post',
    data
  })
}
// 获取分成比例
export function shopGetShareInProportion() {
  return request({
    url: '/shop/get-share-in-proportion',
    method: 'get'
  })
}

// 修改分成比例
export function shopSetShareInProportion(data) {
  return request({
    url: '/shop/set-share-in-proportion',
    method: 'post',
    data
  })
}
// 修改须知
export function shopSetBuyNoticeThat(data) {
  return request({
    url: '/shop/set-buy-notice-that',
    method: 'post',
    data
  })
}

// 获取须知
export function shopGetBuyNoticeThat() {
  return request({
    url: '/shop/get-buy-notice-that',
    method: 'get'
  })
}

// 详情
export function shopGetCardDetails(params) {
  return request({
    url: '/shop/get-card-details/' + params,
    method: 'get'
  })
}
// 保存详情
export function shopUpdateCardDetails(data) {
  return request({
    url: '/shop/update-card-details',
    method: 'post',
    data
  })
}
// 修改上架开关
export function shopCardVaultShopStatus(data) {
  return request({
    url: '/shop/card-vault-shop-status',
    method: 'post',
    data
  })
}
// 修改hot开关
export function shopHotPushStatus(data) {
  return request({
    url: '/shop/hot-push-status',
    method: 'post',
    data
  })
}
// 商城在售数字卡ulist
export function shoplistCardData(params) {
  return request({
    url: '/shop/listCardData',
    method: 'get',
    params: {
      ...params
    }
  })
}
// 修改hot开关
export function shopQueryCard(data) {
  return request({
    url: '/shop/query-card',
    method: 'post',
    data
  })
}
// 修改hot开关
export function shopAddCardShop(data) {
  return request({
    url: '/shop/add-card-shop',
    method: 'post',
    data
  })
}
// 修改hot开关
export function shopUpdateCardPrice(data) {
  return request({
    url: '/shop/update-card-price',
    method: 'post',
    data
  })
}
// 修改hot开关
export function shopCardChopStatus(data) {
  return request({
    url: '/shop/card-shop-status',
    method: 'post',
    data
  })
}
// 修改hot开关
export function shopRelease(data) {
  return request({
    url: '/shop/release',
    method: 'post',
    data
  })
}
// 修改hot开关
export function shopCardsShopStatus(data) {
  return request({
    url: '/shop/cards-shop-status',
    method: 'post',
    data
  })
}
// 商城列表数据
export function shopOrderlistData(params) {
  return request({
    url: '/shop-order/listData',
    method: 'get',
    params: {
      ...params
    }
  })
}
// 商城在售产品拖动排序update-sort
export function shopUpdateSort(data) {
  return request({
    url: '/shop/update-sort',
    method: 'post',
    data
  })
}
// 商城订单详情退款

export function shopOrderRefund(data) {
  return request({
    url: '/shop-order/refund',
    method: 'post',
    data
  })
}

// 商城优先购列表

export function shopPreemptionListData(params) {
  return request({
    url: '/shop_preemption/listData',
    method: 'get',
    params: {
      ...params
    }
  })
}
// 删除优先购列表

export function shopPreemptionDel(data) {
  return request({
    url: '/shop_preemption/del',
    method: 'post',
    data
  })
}
// 获取藏品

export function PreemptionlistVault() {
  return request({
    url: '/shop_preemption/listForCardVaultShop',
    method: 'get'
  })
}
// 新建保存

export function PreemptionAdd(data) {
  return request({
    url: '/shop_preemption/add',
    method: 'post',
    data
  })
}
// 保存

export function PreemptionUpdate(data) {
  return request({
    url: '/shop_preemption/update',
    method: 'post',
    data
  })
}
// 获取藏品详情

export function GetPreemptionlistVault(params) {
  return request({
    url: '/shop_preemption/details/' + params,
    method: 'get'
  })
}
// 获取标签所以数据

export function GetPreemptionSistForShop() {
  return request({
    url: '/shop_preemption/listForShop',
    method: 'get'
  })
}
// 保存优先购
export function ShopPreemptionUpdate(data) {
  return request({
    url: '/shop/update_preemption',
    method: 'post',
    data
  })
}
// 取消优先购
export function ShopPreemptionCancel(data) {
  return request({
    url: '/shop/cancel_preemption',
    method: 'post',
    data
  })
}
// 查证
export function NftGetAssetsTraceability(params) {
  return request({
    url: '/card/cert',
    method: 'get',
    params: {
      ...params
    }
  })
}
// 朔源
export function NftGetAssetsWanderRecord(params) {
  return request({
    url: '/card/wander',
    method: 'get',
    params: {
      ...params
    }
  })
}
// 资产信息查看nft//queryDetails/{id}
export function NftQueryDetails(params) {
  return request({
    url: '/nft/queryDetails/' + params,
    method: 'get'
  })
}
// 资产信息查看nft//queryDetails/{id}
export function NftConfirm(data) {
  return request({
    url: '/nft/confirm/',
    method: 'post',
    data
  })
}
// 查看商城订单信息作品介绍
export function issueConnect(params) {
  return request({
    url: '/shop-order/issue_connect/' + params,
    method: 'get'
  })
}
